
import { createRequest } from './index'
import { formData } from './common'

export const ossUpload = data => {
  return createRequest({
    url: `/api/oss/upload`,
    method: 'post',
		data: formData(data)
  })
}

// 班级查询
export const teacherGradeClassFindAll = data => {
	return createRequest({
		url: `/teacher/grade/class/findAll`,
		method: 'get',
		params: data
	})
}

// 字段列表查询
export const typeCategory = data => {
  return createRequest({
    url: `/dict/type/${data.field}`,
    method: 'get',
		// params: data
  })
}

// 教师列表
export const teacherList = data => {
	return createRequest({
		url: `/teacher/teacher/list`,
		method: 'get',
		params: data
	})
}